<#--  <@formatSeconds seconds />-->
<#macro formatSeconds seconds>	
	<#assign s = seconds % 60>
	<#assign mins = ((seconds - s) % 3600) / 60>
	<#assign hours = ((seconds - s - mins * 60) % 86400) / 3600>
	<#if s == 0>
		<#assign s = "00">
	<#elseif s &lt; 10>
		<#assign s = "0" + s>
	</#if>
	<#if hours &gt; 0>
		<#if hours == 0>
			<#assign hours = "00">
		<#elseif mins &lt; 10>
			<#assign hours = "0" + hours!''>
		</#if>
		<#if mins == 0>
			<#assign mins = "00">
		<#elseif mins &lt; 10>
			<#assign mins = "0" + mins>
		</#if>
		${hours}:${mins}:${s}
	<#elseif mins &gt; 0>
		<#if mins == 0>
			<#assign mins = "00">
		<#elseif mins &lt; 10>
			<#assign mins = "0" + mins>
		</#if>
		${mins}:${s}
	<#else>
		00:${s}
	</#if>
</#macro>

<#macro fromatTitle parentTitle title parentTitleSize titleSize>
	<#if parentTitle?length &gt; 0>
		<#if parentTitle?length &lt; parentTitleSize>
			${parentTitle}: 
			<#else>
			${parentTitle?substring(0, parentTitleSize)}...: 
		</#if> 
		<#if title?length &lt; titleSize-parentTitleSize>
			<span>${title}</span>
			<#else>
			<span>${title?substring(0, titleSize-parentTitleSize)}...</span>
		</#if>       
		<#else>
		<#if title?length &lt; titleSize>
		  	${title}
		  	<#else>
		  	${title?substring(0, titleSize)}...
		 </#if>
	 </#if>
</#macro>